<template>
  <div class="footer">
    <div class="footer_top banxin">
      <ul class="tanxin">
        <li class="footer_li">
          <a
            :class="{ active: kzlia[0] == false }"
            @mouseenter="kza(0, false)"
            href="#"
            style="background-position: -170px -5px"
          ></a>
          <a
            :class="{ active: kzlia[0] == true }"
            @mouseleave="kza(0, true)"
            href="#"
            style="background-position: -5px -115px"
          ></a>
          <p>音乐开放平台</p>
        </li>
        <li class="footer_li">
          <a
            :class="{ active: kzlia[1] == false }"
            @mouseenter="kza(1, false)"
            href="#"
            style="background-position: -5px -170px"
          ></a>
          <a
            :class="{ active: kzlia[1] == true }"
            @mouseleave="kza(1, true)"
            href="#"
            style="background-position: -60px -170px"
          ></a>
          <p>云村交易所</p>
        </li>
        <li class="footer_li">
          <a
            :class="{ active: kzlia[2] == false }"
            @mouseenter="kza(2, false)"
            href="#"
            style="background-position: -5px -60px"
          ></a>
          <a
            :class="{ active: kzlia[2] == true }"
            @mouseleave="kza(2, true)"
            href="#"
            style="background-position: -60px -5px"
          ></a>
          <p>Amped Studio</p>
        </li>
        <li class="footer_li">
          <a
            :class="{ active: kzlia[3] == false }"
            @mouseenter="kza(3, false)"
            href="#"
            style="background-position: -60px -60px"
          ></a>
          <a
            :class="{ active: kzlia[3] == true }"
            @mouseleave="kza(3, true)"
            href="#"
            style="background-position: -115px -5px"
          ></a>
          <p>用户认证</p>
        </li>
        <li class="footer_li">
          <a
            :class="{ active: kzlia[4] == false }"
            @mouseenter="kza(4, false)"
            href="#"
            style="background-position: -115px -115px"
          ></a>
          <a
            :class="{ active: kzlia[4] == true }"
            @mouseleave="kza(4, true)"
            href="#"
            style="background-position: -5px -5px"
          ></a>
          <p>音乐交易平台</p>
        </li>
        <li>
          <a
            :class="{ active: kzlia[5] == false }"
            @mouseenter="kza(5, false)"
            href="#"
            style="background-position: -170px -115px"
          ></a>
          <a
            :class="{ active: kzlia[5] == true }"
            @mouseleave="kza(5, true)"
            href="#"
            style="background-position: -60px -115px"
          ></a>

          <p>赞赏</p>
        </li>
        <li class="footer_li">
          <a
            :class="{ active: kzlia[6] == false }"
            @mouseenter="kza(6, false)"
            href="#"
            style="background-position: -170px -60px"
          ></a>
          <a
            :class="{ active: kzlia[6] == true }"
            @mouseleave="kza(6, true)"
            href="#"
            style="background-position: -115px -60px"
          ></a>
          <p>视频激励</p>
        </li>
      </ul>
    </div>
    <div class="banxin footer_c">
      <p class="footer_cn_p1">
        <span>服务条款</span>
        <span style="margin: 0 8px 0 8px; color: #d9d9d9">|</span>
        <span>隐私政策</span>
        <span style="margin: 0 8px 0 8px; color: #d9d9d9">|</span>
        <span>儿童隐私政策</span>
        <span style="margin: 0 8px 0 8px; color: #d9d9d9">|</span>
        <span>版权投诉</span>
        <span style="margin: 0 8px 0 8px; color: #d9d9d9">|</span>
        <span>投资者关系</span>
        <span style="margin: 0 8px 0 8px; color: #d9d9d9">|</span>
        <span>广告合作</span>
        <span style="margin: 0 8px 0 8px; color: #d9d9d9">|</span>
        <span>联系我们</span>
      </p>
      <p class="footer_c_p2">
        <span>廉正举报</span>
        <span>不良信息举报邮箱: 51jubao@service.netease.com</span>
        <span>客服热线：95163298</span>
      </p>
      <p class="footer_c_p3">
        <span>互联网宗教信息服务许可证：浙（2022）0000120</span>
        <span>增值电信业务经营许可证：浙B2-20150198</span>
        <span>粤B2-20090191-18 工业和信息化部备案管理系统网站</span>
      </p>
      <p class="footer_c_p4">
        <span>网易公司版权所有©1997-2023</span>
        <span>杭州乐读科技有限公司运营：浙网文[2021] 1186-054号</span>
        <span>浙公网安备 33010902002564号</span>
      </p>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      kzlia: [true, true, true, true, true, true, true],
    };
  },
  methods: {
    kza(id, zi) {
      this.kzlia.splice(id, 1, zi);
    },
  },
};
</script>
 
<style lang = "less" scoped>
@import "../assets/base.less";
.footer {
  height: 326px;
  width: 100%;
  background-color: #f2f2f2;
  .footer_top {
    width: 1000px;
    margin: 0 auto;
    ul {
      margin: 0 auto;
      li {
        margin-top: 20px;
        padding: 10px 20px;

        a {
          background: url(../assets/images/footer.png) no-repeat;
          background-size: 220px 220px;
          display: block;
          float: none;
          width: 46px;
          height: 45px;
          margin: 0 auto;
          &.active {
            display: none;
          }
        }

        p {
          display: inline-block;
          margin-top: 10px;
          // margin-left: -27.5px;
          font-weight: 400;
          font-size: 12px;
          text-align: center;
          color: rgba(0, 0, 0, 0.5);
        }
      }
    }
  }

  .footer_c {
    margin: 60px auto;

    .footer_c_p1 {
      text-align: center;

      span {
        color: #666;
        font-size: 12px;
      }
    }

    .footer_c_p2 {
      text-align: center;

      span {
        color: #666;
        font-size: 12px;
        margin-right: 14px;
      }
    }

    .footer_c_p3 {
      text-align: center;

      span {
        color: #666;
        font-size: 12px;
        margin-right: 14px;
      }
    }

    .footer_c_p4 {
      text-align: center;

      span {
        color: #666;
        font-size: 12px;
        margin-right: 14px;
      }
    }
  }
}
</style>